/* Lab 1, exercise 1
刘文骏 2023.7.7
*/
#include <system.h>

void main()
{
    trisb = 0; // set all bits in port B as outputs
    adcon1 = 0x06; // set port A as digital inputs
    while(1) // create an infinite loop
    {
        portb = porta; // copy the switches to the lamps
    }
}